package com.ruoyi.scrap.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ScrapApplyVo {

    /**申请id*/
    private String applyId;
    /** 申请时间 */
    @NotBlank(message = "申请时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;
    /** 电话 */
    @Excel(name = "电话")
    private String workTel;
    @Excel(name = "分管领导")
    private Long leader;
    /** 科室负责人 */
    @Excel(name = "科室负责人")
    private Long deptLeader;
    /** 科室分管人员 */
    @Excel(name = "科室分管人员")
    private Long deptStaff;
    /** 车间主任 */
    @Excel(name = "车间主任")
    private Long workLeader;
    @Excel(name = "经办人签字")
    private String sign;

    @NotBlank(message = "记录表明细不能为空")
    private List<ScrapApplyDetailVo> details;

}
